//
//  SeeADoctorGuideViewController.m
//  QuickCure1
//
//  Created by 黄恺捷 on 16/11/3.
//  Copyright © 2016年 maoge. All rights reserved.
//

#import "SeeADoctorGuideViewController.h"
#import <SVProgressHUD.h>

@interface SeeADoctorGuideViewController ()<UIWebViewDelegate>;

@end

@implementation SeeADoctorGuideViewController
- (void)viewDidLoad {
    [super viewDidLoad];
    UIWebView *webView1 = [[UIWebView alloc]initWithFrame:[UIScreen mainScreen].bounds];
    self.webView = webView1;
    [self.view addSubview:webView1];
    
    NSURL *url = [NSURL URLWithString:@"https://www.baidu.com"];
    
    NSURLRequest *request = [NSURLRequest requestWithURL
                             :url];
    self.webView.delegate=self;
    
    [self.webView loadRequest:request];
    
}
- (void)webViewDidStartLoad:(UIWebView *)webView{
    
    [SVProgressHUD show];
    
}

- (void)webViewDidFinishLoad:(UIWebView *)webView{
    
    [SVProgressHUD dismiss];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (void)viewWillDisappear:(BOOL)animated{
    
    [SVProgressHUD dismiss];
    [super viewWillDisappear:YES];
}
@end
